package com.hliushi.springbean;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;

/**
 * . @Import的bean都将加入到Spring容器中, 这些在容器中bean名称是该类的全类名
 * 比如 com.hliushi.springbean.TestDemo2
 *
 * @author llhuang10
 * @date 2021/8/21 19:21
 */
@Import(value = {TestDemo2.class, MyClass.class})
public class TestDemo {


    @Bean
    public AccountDao2 accountDao2() {
        return new AccountDao2();
    }
}
